Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODMenuBar


AddMenuBefore

The AddMenuBefore method inserts a new menu before another specified menu on this menu bar.

void AddMenuBefore (in ODMenuID menuID, 
                    in ODPlatformMenu menu,
                    in ODPart part, 
                    in ODMenuID beforeID);
menuID
A platform-specific identifier of the new menu. On the Mac OS platform, the menu ID is defined as a signed 16-bit value.
menu
A 32-bit value identifying the platform-specific menu for the specified menu ID. On the Mac OS platform, this parameter is a menu handle (type MenuHandle).
part
A reference to a part that owns the menu, or kODNULL if the menu is a document shell menu.
beforeID
The menu ID of the menu that follows the new menu.
EXCEPTIONS
kODErrOutOfMemory
There is not enough memory to allocate the menu.
SEE ALSO
"Adding Part Menus to the Base Menu Bar" on page 241 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help